<div class="navbar-default sidebar" role="navigation">
    <div class="sidebar-nav navbar-collapse">
        <ul class="nav" id="side-menu">
            <li><a href="/admin/index"><i class="fa fa-home fa-fw"></i>系统首页</a></li>
            <li {{if is_array(CONTROLLER_NAME,array('content','category','comment','newsattachment','sitemodel'))}} class="active" {{/if}}
                ><a href="#"><i class="fa fa-th-list fa-fw"></i> 内容管理<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li><a href="{{url("/admin/content/index")}}" {{if CONTROLLER_NAME eq 'content'}}class="active"{{/if}} ><i class="fa fa-list-alt fa-fw"></i>内容管理</a></li>
                    <li><a href="{{url('/admin/category')}}" {{if CONTROLLER_NAME eq 'category'}}class="active"{{/if}}><i class="fa fa-tasks fa-fw"></i>栏目管理</a></li>
                    <li><a href="{{url('/comment/comment')}}" {{if CONTROLLER_NAME eq 'comment'}}class="active"{{/if}}><i class="fa fa-commenting  fa-fw"></i>评论管理</a></li>
                    <li><a href="{{url('/admin/newsattachment')}}" {{if CONTROLLER_NAME eq 'newsattachment'}}class="active"{{/if}}><i class="fa fa-folder-open fa-fw"></i> 附件管理</a></li>
                    <li><a href="{{url('/admin/sitemodel')}}" {{if ACTION_NAME eq 'images'}}class="active"{{/if}}><i class="fa fa-circle  fa-fw"></i> 模型管理</a></li>
                    <li><a href="{{url('/admin/tag')}}" {{if ACTION_NAME eq 'tag'}}class="active"{{/if}}><i class="fa fa-tag  fa-fw"></i> TAG管理</a></li>
                </ul>
            </li>
            <li {{if is_array(CONTROLLER_NAME,array('adver','friendlink','newsbefrom','newsauthor','newskey'))}} class="active" {{/if}}
                ><a href="#"><i class="fa fa-id-card fa-fw"></i>市场营销<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li><a href="{{url('admin/adver')}}" {{if CONTROLLER_NAME eq 'friendlink'}}class="active"{{/if}}><i class="fa fa-handshake-o  fa-fw"></i> 广告管理</a></li>
                    <li><a href="{{url('admin/setting/seo')}}" {{if ACTION_NAME eq 'seo'}}class="active"{{/if}}><i class="fa fa-check fa-fw"></i> SEO</a></li>
                    <li><a href="{{url('admin/friendlink')}}" {{if CONTROLLER_NAME eq 'friendlink'}}class="active"{{/if}}><i class="fa fa-link fa-fw"></i> 友情链接</a></li>
                    <li><a href="{{url('admin/newsbefrom')}}" {{if CONTROLLER_NAME eq 'newsbefrom'}}class="active"{{/if}}><i class="fa fa-tasks fa-fw"></i>来源管理</a></li>
                    <li><a href="{{url('admin/newsauthor')}}" {{if CONTROLLER_NAME eq 'newsauthor'}}class="active"{{/if}}><i class="fa fa-address-book fa-fw"></i>作者管理</a></li>
                    <li><a href="{{url('admin/newskey')}}" {{if CONTROLLER_NAME eq 'newskey'}}class="active"{{/if}}><i class="fa fa-keyboard-o fa-fw"></i>关联链接</a></li>
                </ul>
            </li>
            <li {{if is_array(CONTROLLER_NAME,array('member','pay','member_message','order','check','membergroup'))}} class="active" {{/if}}
                ><a href="#"><i class="fa fa-user fa-fw"></i>会员管理<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li><a href="{{url('member/member')}}" {{if CONTROLLER_NAME eq 'member'  and ACTION_NAME eq 'index'}}class="active"{{/if}}><i class="fa fa-user-o fa-fw"></i>会员管理</a></li>
                    <li><a href="{{url('member/member/check')}}" {{if CONTROLLER_NAME eq 'member' and ACTION_NAME eq 'check'}}class="active"{{/if}}><i class="fa fa-check-circle fa-fw"></i> 审核会员</a></li>
                    <li><a href="{{url('member/pay')}}" {{if CONTROLLER_NAME eq 'pay'}}class="active"{{/if}}><i class="fa fa-money fa-fw"></i> 积分记录</a></li>
                    <li><a href="{{url('member/order')}}" {{if CONTROLLER_NAME eq 'order'}}class="active"{{/if}}><i class="fa fa-shopping-cart fa-fw"></i> 订单管理</a></li>
                    <li><a href="{{url('member/membergroup')}}" {{if CONTROLLER_NAME eq 'role'}}class="active"{{/if}}><i class="fa fa-user-plus fa-fw"></i> 会员组管理</a></li>
                </ul>
            </li>
            <li  {{if is_array(CONTROLLER_NAME,array('pay','diyform'))}} class="active" {{/if}}><a href="#"><i class="fa fa-th-large fa-fw"></i>模块管理<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li><a href="{{url('pay/pay')}}" {{if CONTROLLER_NAME eq 'pay'}}class="active"{{/if}}><i class="fa fa-cc-visa fa-fw"></i>支付模块</a></li>
                    <li><a href="{{url('diyform/diyform')}}" {{if CONTROLLER_NAME eq 'diyform'}}class="active"{{/if}}><i class="fa fa-wpforms  fa-fw"></i>自定义表单</a></li>
                </ul>
            </li>
            <li  {{if CONTROLLER_NAME eq 'database'}}class="active"{{/if}}
                ><a href="#"><i class="fa fa-database fa-fw"></i>数据管理<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li><a href="{{url('admin/database/index')}}" {{if CONTROLLER_NAME eq 'database' and  ACTION_NAME eq 'index' }}class="active"{{/if}}><i class="fa fa-database fa-fw"></i> 数据备份</a></li>
                    <li><a href="{{url('admin/database/databacklist')}}" {{if CONTROLLER_NAME eq 'database' and  ACTION_NAME eq 'databacklist'}}class="active"{{/if}}><i class="fa fa-square-o fa-fw"></i>数据还原</a></li>
                </ul>
            </li>
            <li {{if is_array(CONTROLLER_NAME,array('member','role','site'))}} class="active" {{/if}}
                ><a href="#"><i class="fa fa-user fa-fw"></i>站长管理<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li><a href="{{url('admin/site')}}" {{if CONTROLLER_NAME eq 'role'}}class="active"{{/if}}><i class="fa fa-user-plus fa-fw"></i> 站点管理</a></li>
                    <li><a href="{{url('admin/menu')}}" {{if CONTROLLER_NAME eq 'role'}}class="active"{{/if}}><i class="fa fa-user-plus fa-fw"></i> 后台菜单</a></li>
                    <li><a href="{{url('admin/member')}}" {{if CONTROLLER_NAME eq 'member'}}class="active"{{/if}}><i class="fa fa-user-o fa-fw"></i>后台团队</a></li>
                    <li><a href="{{url('admin/role')}}" {{if CONTROLLER_NAME eq 'role'}}class="active"{{/if}}><i class="fa fa-user-plus fa-fw"></i> 角色管理</a></li>
                </ul>
            </li>
            <li {{if is_array(CONTROLLER_NAME,array('setting','urlrule','newsword'))}} class="active" {{/if}}
                ><a href="#"><i class="fa fa-cog fa-fw"></i>系统设置<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li><a href="{{url('admin/setting')}}" {{if CONTROLLER_NAME eq 'setting'}}class="active"{{/if}}><i class="fa fa-cog fa-fw"></i> 系统设置</a></li>
                    <li><a href="{{url('admin/urlrule')}}" {{if CONTROLLER_NAME eq 'urlrule'}}class="active"{{/if}}><i class="fa fa-heart-o fa-fw"></i>URL规则管理</a></li>
                    <li><a href="{{url('admin/newsword')}}" {{if CONTROLLER_NAME eq 'newsword'}}class="active"{{/if}}><i class="fa fa-heart-o fa-fw"></i>词语过滤</a></li>
                </ul>
            </li>

        </ul>
    </div>
</div>

